package com.wanmait.recycle.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.wanmait.recycle.pojo.History;
import com.wanmait.recycle.pojo.Userinfo;

public interface HistoryService extends CommonService<History>{
		
		 PageInfo<History> findAllByPager();
		
		 List<History> findByUserinfo(Userinfo userinfo);	

		 void setUnEnableByTypeAndId(Integer type,Integer id);
		 
		 void setEnableByTypeAndId(Integer type,Integer id );
		 
		 void addHistory(Integer type,Userinfo userinfo,Integer objectId,String objectName,Integer firsttypeid,Integer secondtypeId);
		 
		 void deleteByTypeAndObjectId(Integer type,Integer objectId);

		PageInfo<History> findByUserinfoAndPageInfo(Userinfo user);
}
